package cn.gbase.jiangsu.data.transfer.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.View;

/**
* 
*/
@Table("product_comment")
@View("product_comment_view")
public class ProductComment {

	@Id
	@Column("id")
	private int id;

	/**
	 * 订单ID.
	 */
	@Column("order_id")
	private int orderId;

	/**
	 * 商品ID.
	 */
	@Column("product_id")
	private int productId;

	/**
	 * 用户ID.
	 */
	@Column("user_id")
	private int userId;

	/**
	 * 评分.
	 */
	@Column("score")
	private int score;

	/**
	 * 评价内容.
	 */
	@Column("content")
	private String content;

	/**
	 * 创建时间.
	 */
	@Column("create_time")
	private Date createTime;

	/**
	 * 评价回复
	 */
	@Column("comment_reply")
	private String commentRreply;

	/**
	 * 商品名称.
	 */
	@Column("product_name")
	@Readonly
	private String productName;

	/**
	 * 商品图片1.
	 */
	@Column("product_pic1")
	@Readonly
	private String productPic1;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductPic1() {
		return productPic1;
	}

	public void setProductPic1(String productPic1) {
		this.productPic1 = productPic1;
	}

	public String getCommentRreply() {
		return commentRreply;
	}

	public void setCommentRreply(String commentRreply) {
		this.commentRreply = commentRreply;
	}

}